home *** CD-ROM | disk | FTP | other *** search
/ Geek Games #12 / GEGA012.iso / Jogos de Azar / bjack.swf / scripts / DefineButton2_85 / BUTTONCONDACTION on(release).as
Text File  |  2006-01-17  |  696b  |  27 lines

  1. on(release){
  2.    if(eval("_level0/1Player:TControl") == "1" and "21" < eval("_level0/1Player:pl1Split"))
  3.    {
  4.       set("_level0/1Player:pl1Split",eval("_level0/1Player:pl1tSplit"));
  5.       set("_level0/KDealer:TS1","_level0/1Player:pl1tSplit");
  6.       set("_level0/1Player:pl1tSplit","");
  7.       tellTarget("_level0/1Player")
  8.       {
  9.          gotoAndStop("Split2");
  10.          play();
  11.       }
  12.       gotoAndStop(32);
  13.    }
  14.    else
  15.    {
  16.       set("_level0/1Player:pl1tSplit","");
  17.       tellTarget("_level0/1Player")
  18.       {
  19.          gotoAndStop("Split2");
  20.          play();
  21.       }
  22.       gotoAndStop(32);
  23.    }
  24.    set("_level0/action:Tdeal","");
  25.    call("_level0:CorrectVars");
  26. }
  27.